const token = localStorage.getItem("token")
//因为token从storage里面获取的,从Storage里面获取的是字符串 "undefined   "
if (!token || token == 'undefined') {
    window.alert("请先登录")
    location.href = "./login.html"
}